<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>增加用户</title>
<link rel="shortcut icon" href="favicon.ico">
<link href="${path }/static/css/bootstrap.min14ed.css?v=3.3.6"
	rel="stylesheet">
<link href="${path }/static/css/font-awesome.min93e3.css?v=4.4.0"
	rel="stylesheet">
<link href="${path }/static/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link href="${path }/static/css/animate.min.css" rel="stylesheet">
<link href="${path }/static/css/style.min862f.css?v=4.1.0"
	rel="stylesheet">
<script>
	if (window.top !== window.self) {
		window.top.location = window.location;
	}
</script>
<script type="text/javascript">
	var msg = '${msg}'
	if (msg != null && msg != '') {
		alert(msg);
	}
</script>
</head>
<body class="gray-bg">
	<div class="middle-box text-center loginscreen   animated fadeInDown">
		<div>
			<form class="m-t" role="form" action="${path }/DoInsert">				
			    <div class="form-group">
					<input type="text" class="form-control" name="inout" placeholder="请输入收入/支出">
				</div>
				<div class="form-group">
					<input type="text" class="form-control" name="money" placeholder="请输入金额" >
				</div>
				<div class="form-group">
					<input type="text" class="form-control" name="date" placeholder="请输入年-月-日" >
				</div>
				<div class="form-group">
					<select class="form-control" name="family_id" ">
					<c:forEach items="${listf }" var="f">
						<option value="${f.id }">${f.name }</option>
					</c:forEach>
					</select>
				</div>
				<div class="form-group">
				    <select class="form-control" name="member_id" >
					<c:forEach items="${listm }" var="m">
						<option value="${m.id }">${m.name }</option>
					</c:forEach>
					</select>
				</div>
				<button type="submit" class="btn btn-primary block full-width m-b">确定</button>
			</form>
		</div>
	</div>
	<script src="${path }/static/js/jquery.min.js?v=2.1.4"></script>
	<script src="${path }/static/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="${path }/static/plugins/iCheck/icheck.min.js"></script>
	<script>
		$(document).ready(function() {
			$(".i-checks").iCheck({
				checkboxClass : "icheckbox_square-green",
				radioClass : "iradio_square-green",
			})
		});
	</script>
	<script type="text/javascript"
		src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>
</html>